import request from '../../utils/request';

export const fetchList = (query) => {
    return request({
        url: '/sys/role/list',
        method: 'post',
        data: query
    })
}

export const saveRole = (query) => {
    return request({
        url: '/sys/role/save',
        method: 'post',
        data: query
    })
}

export const menuPermission = (query) => {
    return request({
        url: '/sys/role/menuPermission',
        method: 'post',
        data: query
    })
}

export const updateRole = (query) => {
    return request({
        url: '/sys/role/update',
        method: 'post',
        data: query
    })
}

export const deleteRole = (query) => {
    return request({
        url: '/sys/role/delete',
        method: 'post',
        data: query
    })
}

export const allList = (query) => {
    return request({
        url: '/sys/role/allList',
        method: 'post',
        data: query
    })
}
